import { ViewTool } from '@/utils';

/**
 * EAMIndexView 部件模型
 *
 * @export
 * @class EAMIndexViewModel
 */
export default class EAMIndexViewModel {

    /**
     * 菜单项集合
     *
     * @private
     * @type {any[]}
     * @memberof EAMIndexViewModel
     */
    private items: any[] = [
                {
        	id: '99a7488fb16d2488fa4ebccb5a27db17',
        	name: 'user_menus',
        	text: '用户菜单',
        	type: 'MENUITEM',
        	counterid: '',
        	tooltip: '用户菜单',
        	expanded: false,
        	separator: false,
        	hidden: false,
        	hidesidebar: false,
        	opendefault: false,
        	iconcls: '',
        	icon: '',
        	textcls: '',
        	appfunctag: '',
        	authtag:'EAMWeb-EAMIndexView-user_menus',
        }
        ,
                {
        	id: '6cf32deffed383410a221502834a8936',
        	name: 'top_menus',
        	text: '顶部菜单',
        	type: 'MENUITEM',
        	counterid: '',
        	tooltip: '顶部菜单',
        	expanded: false,
        	separator: false,
        	hidden: false,
        	hidesidebar: false,
        	opendefault: false,
        	iconcls: '',
        	icon: '',
        	textcls: '',
        	appfunctag: '',
        	authtag:'EAMWeb-EAMIndexView-top_menus',
        	items: [
                		        {
                	id: '57108EFD-3688-48CE-B041-9E35C121E601',
                	name: 'menuitem60',
                	text: 'iBiz开放平台',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: 'iBiz开放平台',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: 'fa fa-home',
                	icon: '',
                	textcls: '',
                	appfunctag: 'AppFunc',
                	appfuncyype: 'OPENHTMLPAGE',
                	authtag:'EAMWeb-EAMIndexView-menuitem60',
                }
                ,
                		        {
                	id: '5E5E6ADB-8E03-4444-B48C-403727C1C593',
                	name: 'menuitem62',
                	text: '项目文件',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '项目文件',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: 'fa fa-folder-open-o',
                	icon: '',
                	textcls: '',
                	appfunctag: 'AppFunc2',
                	appfuncyype: 'OPENHTMLPAGE',
                	authtag:'EAMWeb-EAMIndexView-menuitem62',
                }
                ,
                		        {
                	id: 'D1D56C5D-6551-4A01-92C3-EF56BD84CD84',
                	name: 'menuitem61',
                	text: '模型设计工具',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '模型设计工具',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: 'fa fa-wrench',
                	icon: '',
                	textcls: '',
                	appfunctag: 'AppFunc3',
                	appfuncyype: 'OPENHTMLPAGE',
                	authtag:'EAMWeb-EAMIndexView-menuitem61',
                }
                ,
                		        {
                	id: '7CE11F26-5189-48EA-90B5-A47D96EE5EB9',
                	name: 'menuitem63',
                	text: 'iBiz论坛',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: 'iBiz论坛',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: 'fa fa-comments-o',
                	icon: '',
                	textcls: '',
                	appfunctag: 'AppFunc4',
                	appfuncyype: 'OPENHTMLPAGE',
                	authtag:'EAMWeb-EAMIndexView-menuitem63',
                }
                ,
        	],
        }
        ,
                {
        	id: 'd6fc48890e14cff0001a4c9e0b25f936',
        	name: 'left_exp',
        	text: '左侧菜单',
        	type: 'MENUITEM',
        	counterid: '',
        	tooltip: '左侧菜单',
        	expanded: true,
        	separator: false,
        	hidden: false,
        	hidesidebar: false,
        	opendefault: false,
        	iconcls: '',
        	icon: '',
        	textcls: '',
        	appfunctag: '',
        	authtag:'EAMWeb-EAMIndexView-left_exp',
        	items: [
                		        {
                	id: 'c4dc6ab521fa020cd5517b33a1cf878a',
                	name: 'menuitem1',
                	text: '工作台',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '工作台',
                	expanded: true,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: 'fa fa-desktop',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto37',
                	appfuncyype: 'APPVIEW',
                	viewname: 'app-portal-view',
                	authtag:'EAMWeb-EAMIndexView-menuitem1',
                }
                ,
                		        {
                	id: '6A9F8D81-BCC4-4569-A995-9207AACECF58',
                	name: 'menuitem2',
                	text: '设备',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '设备',
                	expanded: true,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: 'fa fa-video-camera',
                	icon: '',
                	textcls: '',
                	appfunctag: '',
                	authtag:'EAMWeb-EAMIndexView-menuitem2',
                	items: [
                        		        {
                        	id: 'C00AD322-399D-4466-8CD7-40708EF5B7C3',
                        	name: 'menuitem4',
                        	text: '设备档案',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '设备档案',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: '',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto1',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'emeqtype-tree-exp-view',
                        	authtag:'EAMWeb-EAMIndexView-menuitem4',
                        }
                        ,
                        		        {
                        	id: '42E4B2AE-553C-4CDD-B926-C78377CEB27F',
                        	name: 'menuitem3',
                        	text: '设备类型',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '设备类型',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: '',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto21',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'emeqtype-tree-exp-view2',
                        	authtag:'EAMWeb-EAMIndexView-menuitem3',
                        }
                        ,
                        		        {
                        	id: '5DBC4E30-C876-4B8B-83E1-2D6BDC362649',
                        	name: 'menuitem5',
                        	text: '位置',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '位置',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: '',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto12',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'emeqlocation-tree-exp-view',
                        	authtag:'EAMWeb-EAMIndexView-menuitem5',
                        }
                        ,
                        		        {
                        	id: '59480235-2182-4551-918A-2AABB706C8D6',
                        	name: 'menuitem6',
                        	text: '文档',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '文档',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: '',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto20',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'emdrwgtree-exp-view',
                        	authtag:'EAMWeb-EAMIndexView-menuitem6',
                        }
                        ,
                        		        {
                        	id: '4410449F-FAE2-49E0-80ED-E433C6D5ED53',
                        	name: 'menuitem7',
                        	text: '备件包',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '备件包',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: '',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto10',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'emeqspare-grid-exp-view',
                        	authtag:'EAMWeb-EAMIndexView-menuitem7',
                        }
                        ,
                	],
                }
                ,
                		        {
                	id: 'A081EB06-E826-49F9-9ACB-D2C9D3AE1740',
                	name: 'menuitem8',
                	text: '运行',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '运行',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: 'fa fa-bug',
                	icon: '',
                	textcls: '',
                	appfunctag: '',
                	authtag:'EAMWeb-EAMIndexView-menuitem8',
                	items: [
                        		        {
                        	id: '02C6813C-09AC-4DF5-8F9D-66A83FB79074',
                        	name: 'menuitem9',
                        	text: '运行日志',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '运行日志',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: '',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto65',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'emeqwlgrid-view',
                        	authtag:'EAMWeb-EAMIndexView-menuitem9',
                        }
                        ,
                        		        {
                        	id: '3BD563DF-E388-464E-B3DE-A0F2E5E300E5',
                        	name: 'menuitem10',
                        	text: '运行监控',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '运行监控',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: '',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto60',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'emeqmonitor-grid-view',
                        	authtag:'EAMWeb-EAMIndexView-menuitem10',
                        }
                        ,
                        		        {
                        	id: '6A0E03D6-4D65-4BEE-AF75-0B7CF910FD26',
                        	name: 'menuitem11',
                        	text: '仪表',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '仪表',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: '',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto62',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'emeqmpgrid-view',
                        	authtag:'EAMWeb-EAMIndexView-menuitem11',
                        }
                        ,
                        		        {
                        	id: 'EEC4373F-7671-4218-9C46-605BCE6C3827',
                        	name: 'menuitem12',
                        	text: '仪表读数',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '仪表读数',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: '',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto59',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'emeqmpmtrgrid-view',
                        	authtag:'EAMWeb-EAMIndexView-menuitem12',
                        }
                        ,
                        		        {
                        	id: '64CCBDF8-F063-4FC9-90E8-84291592B494',
                        	name: 'menuitem13',
                        	text: '关键点',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '关键点',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: '',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto63',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'emeqkpgrid-view',
                        	authtag:'EAMWeb-EAMIndexView-menuitem13',
                        }
                        ,
                        		        {
                        	id: 'D40720F7-84C6-48D0-A011-11B42710E5E6',
                        	name: 'menuitem14',
                        	text: '关键点记录',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '关键点记录',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: '',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto67',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'emeqkprcdgrid-view',
                        	authtag:'EAMWeb-EAMIndexView-menuitem14',
                        }
                        ,
                	],
                }
                ,
                		        {
                	id: 'AEC0D4BF-60C4-4A24-9B48-7ADAE91AB547',
                	name: 'menuitem15',
                	text: '计划',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '计划',
                	expanded: true,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: 'fa fa-pencil-square-o',
                	icon: '',
                	textcls: '',
                	appfunctag: '',
                	authtag:'EAMWeb-EAMIndexView-menuitem15',
                	items: [
                        		        {
                        	id: '1BFE6F43-C4EE-46B4-8CF2-74E0E54B43E5',
                        	name: 'menuitem16',
                        	text: '计划',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '计划',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: '',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto15',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'emplan-grid-view',
                        	authtag:'EAMWeb-EAMIndexView-menuitem16',
                        }
                        ,
                        		        {
                        	id: '6A34838E-7A67-421B-B2C2-F4FA1AE975E7',
                        	name: 'menuitem17',
                        	text: '计划模板',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '计划模板',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: '',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto6',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'emplan-templ-grid-view',
                        	authtag:'EAMWeb-EAMIndexView-menuitem17',
                        }
                        ,
                	],
                }
                ,
                		        {
                	id: '780EAE0F-4FAA-40A0-9023-4EEF63EDAE5B',
                	name: 'menuitem18',
                	text: '能耗',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '能耗',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: 'fa fa-codepen',
                	icon: '',
                	textcls: '',
                	appfunctag: '',
                	authtag:'EAMWeb-EAMIndexView-menuitem18',
                	items: [
                        		        {
                        	id: '4F3446C1-2E3D-4E7F-82C3-F0C73054542E',
                        	name: 'menuitem19',
                        	text: '能源',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '能源',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: '',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto35',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'emengrid-view',
                        	authtag:'EAMWeb-EAMIndexView-menuitem19',
                        }
                        ,
                        		        {
                        	id: '01EAFB0B-F24D-468A-80A0-1E0156CB7D57',
                        	name: 'menuitem20',
                        	text: '能耗',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '能耗',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: '',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto32',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'emenconsum-grid-view',
                        	authtag:'EAMWeb-EAMIndexView-menuitem20',
                        }
                        ,
                	],
                }
                ,
                		        {
                	id: '2616361F-38B7-45D9-BF44-1CA241B0CE24',
                	name: 'menuitem21',
                	text: '工单',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '工单',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: 'fa fa-align-justify',
                	icon: '',
                	textcls: '',
                	appfunctag: '',
                	authtag:'EAMWeb-EAMIndexView-menuitem21',
                	items: [
                        		        {
                        	id: 'FA7BAD66-1635-423A-B912-BB6A8CCE7486',
                        	name: 'menuitem23',
                        	text: '内部工单',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '内部工单',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: '',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto9',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'emwo-innergrid-view',
                        	authtag:'EAMWeb-EAMIndexView-menuitem23',
                        }
                        ,
                        		        {
                        	id: 'E5BE8CB2-DD19-479E-BA9E-93C56BCBD04F',
                        	name: 'menuitem24',
                        	text: '外委工单',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '外委工单',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: '',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto17',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'emwo-oscgrid-view',
                        	authtag:'EAMWeb-EAMIndexView-menuitem24',
                        }
                        ,
                        		        {
                        	id: 'FED75B14-9156-4EEA-8A31-8D4AE5ACF5BC',
                        	name: 'menuitem25',
                        	text: '能耗工单',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '能耗工单',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: '',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto5',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'emwo-engrid-view',
                        	authtag:'EAMWeb-EAMIndexView-menuitem25',
                        }
                        ,
                        		        {
                        	id: '41C5F737-0C80-468C-BA28-D73DEAB74E8C',
                        	name: 'menuitem26',
                        	text: '点检工单',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '点检工单',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: '',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto3',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'emwo-dpgrid-view',
                        	authtag:'EAMWeb-EAMIndexView-menuitem26',
                        }
                        ,
                        		        {
                        	id: '94882A05-D7C6-417D-B859-E02782DCC44D',
                        	name: 'menuitem27',
                        	text: '外委申请',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '外委申请',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: '',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto16',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'emapply-grid-view',
                        	authtag:'EAMWeb-EAMIndexView-menuitem27',
                        }
                        ,
                	],
                }
                ,
                		        {
                	id: '6A331C98-32F0-4DF4-9079-DE21531559A8',
                	name: 'menuitem36',
                	text: '活动',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '活动',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: 'fa fa-forward',
                	icon: '',
                	textcls: '',
                	appfunctag: '',
                	authtag:'EAMWeb-EAMIndexView-menuitem36',
                	items: [
                        		        {
                        	id: 'E537F94E-6858-4737-ABD8-E1055C562A94',
                        	name: 'menuitem37',
                        	text: '更换安装',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '更换安装',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: '',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto27',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'emeqsetup-grid-view',
                        	authtag:'EAMWeb-EAMIndexView-menuitem37',
                        }
                        ,
                        		        {
                        	id: '6B45F014-E7D1-443B-85A9-CBA33B8249F2',
                        	name: 'menuitem38',
                        	text: '事故记录',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '事故记录',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: '',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto33',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'emeqdebug-grid-view',
                        	authtag:'EAMWeb-EAMIndexView-menuitem38',
                        }
                        ,
                        		        {
                        	id: '2C4D6E36-C403-4602-A3D6-BD64E8C9C61E',
                        	name: 'menuitem40',
                        	text: '维修记录',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '维修记录',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: '',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto38',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'emeqcheck-grid-view',
                        	authtag:'EAMWeb-EAMIndexView-menuitem40',
                        }
                        ,
                        		        {
                        	id: '8235372B-BB5E-4B44-A0C9-D5637AF59B7E',
                        	name: 'menuitem39',
                        	text: '抢修记录',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '抢修记录',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: '',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto31',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'emeqmaintance-grid-view',
                        	authtag:'EAMWeb-EAMIndexView-menuitem39',
                        }
                        ,
                        		        {
                        	id: '73692E10-FF78-4D75-8E96-B910CAE1DFFB',
                        	name: 'menuitem41',
                        	text: '保养记录',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '保养记录',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: '',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto28',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'emeqkeep-grid-view',
                        	authtag:'EAMWeb-EAMIndexView-menuitem41',
                        }
                        ,
                	],
                }
                ,
                		        {
                	id: '17501C8D-04B1-4B38-9E30-496EF2FE7DD3',
                	name: 'menuitem29',
                	text: '故障',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '故障',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: 'fa fa-exclamation-triangle',
                	icon: '',
                	textcls: '',
                	appfunctag: '',
                	authtag:'EAMWeb-EAMIndexView-menuitem29',
                	items: [
                        		        {
                        	id: '1D8D1EBF-793C-47D0-B230-88EE3F094BBC',
                        	name: 'menuitem30',
                        	text: '故障知识库',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '故障知识库',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: '',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto66',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'emrfodegrid-exp-view',
                        	authtag:'EAMWeb-EAMIndexView-menuitem30',
                        }
                        ,
                        		        {
                        	id: 'FB585FD0-B400-4B26-A479-3DCAF510AED4',
                        	name: 'menuitem31',
                        	text: '现象',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '现象',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: '',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto50',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'emrfodegrid-view',
                        	authtag:'EAMWeb-EAMIndexView-menuitem31',
                        }
                        ,
                        		        {
                        	id: '5E7F68BD-7B8E-4F8A-BC97-2CA480BBA903',
                        	name: 'menuitem32',
                        	text: '现象分类',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '现象分类',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: '',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto26',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'emrfodetypegrid-view',
                        	authtag:'EAMWeb-EAMIndexView-menuitem32',
                        }
                        ,
                        		        {
                        	id: 'D35F1501-B5BB-425B-9620-AF43E697B694',
                        	name: 'menuitem33',
                        	text: '模式',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '模式',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: '',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto41',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'emrfomogrid-view',
                        	authtag:'EAMWeb-EAMIndexView-menuitem33',
                        }
                        ,
                        		        {
                        	id: '56FF4FE4-2C4C-41A0-A15D-AB7BD7A45052',
                        	name: 'menuitem34',
                        	text: '原因',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '原因',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: '',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto48',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'emrfocagrid-view',
                        	authtag:'EAMWeb-EAMIndexView-menuitem34',
                        }
                        ,
                        		        {
                        	id: 'E1CBE724-3D74-432A-8E26-4AAF6184FD10',
                        	name: 'menuitem35',
                        	text: '解决方案',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '解决方案',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: '',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto30',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'emrfoacgrid-view',
                        	authtag:'EAMWeb-EAMIndexView-menuitem35',
                        }
                        ,
                	],
                }
                ,
                		        {
                	id: '313CC6B8-906F-4EBA-8904-6C87AEA7696D',
                	name: 'menuitem42',
                	text: '资产',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '资产',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: 'fa fa-money',
                	icon: '',
                	textcls: '',
                	appfunctag: '',
                	authtag:'EAMWeb-EAMIndexView-menuitem42',
                	items: [
                        		        {
                        	id: '9462B8CB-A157-4E32-B758-EB7368385654',
                        	name: 'menuitem43',
                        	text: '资产科目',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '资产科目',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: '',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto51',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'emassetclassgrid-view',
                        	authtag:'EAMWeb-EAMIndexView-menuitem43',
                        }
                        ,
                        		        {
                        	id: '023663C0-9B5C-495F-A7C0-ECCD0691848B',
                        	name: 'menuitem44',
                        	text: '固定资产台账',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '固定资产台账',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: '',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto29',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'emassetgrid-view',
                        	authtag:'EAMWeb-EAMIndexView-menuitem44',
                        }
                        ,
                        		        {
                        	id: '4127DCAE-7E15-44A9-B7C2-890BBB872840',
                        	name: 'menuitem45',
                        	text: '报废资产',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '报废资产',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: '',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto46',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'emassetgrid-view-bf',
                        	authtag:'EAMWeb-EAMIndexView-menuitem45',
                        }
                        ,
                        		        {
                        	id: '56000D3B-DC71-4CC4-BF2F-C4111766AB1E',
                        	name: 'menuitem46',
                        	text: '资产盘点记录',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '资产盘点记录',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: '',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto39',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'emassetcleargrid-view-5564',
                        	authtag:'EAMWeb-EAMIndexView-menuitem46',
                        }
                        ,
                	],
                }
                ,
                		        {
                	id: '7F1D5195-3C50-468C-B2CD-770A85E26567',
                	name: 'menuitem47',
                	text: '材料',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '材料',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: 'fa fa-dashcube',
                	icon: '',
                	textcls: '',
                	appfunctag: '',
                	authtag:'EAMWeb-EAMIndexView-menuitem47',
                	items: [
                        		        {
                        	id: '2F523CA5-EA2B-4694-B346-EFDE11083C30',
                        	name: 'menuitem49',
                        	text: '物品',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '物品',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: '',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto14',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'emitem-type-item-tree-exp-view',
                        	authtag:'EAMWeb-EAMIndexView-menuitem49',
                        }
                        ,
                        		        {
                        	id: 'DF10A7F5-6CA4-4E09-86CD-20E1D2C282F9',
                        	name: 'menuitem48',
                        	text: '物品类型',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '物品类型',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: '',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto22',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'emitem-type-info-tree-exp-view',
                        	authtag:'EAMWeb-EAMIndexView-menuitem48',
                        }
                        ,
                        		        {
                        	id: '6444AECD-EE3F-4492-A560-73FE39786154',
                        	name: 'menuitem50',
                        	text: '库存管理',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '库存管理',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: '',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto19',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'emstock-grid-view',
                        	authtag:'EAMWeb-EAMIndexView-menuitem50',
                        }
                        ,
                        		        {
                        	id: '69CD9775-715F-44A3-9C91-A4496C2ACF1E',
                        	name: 'menuitem51',
                        	text: '损溢单',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '损溢单',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: '',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto18',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'emitem-pltab-exp-view',
                        	authtag:'EAMWeb-EAMIndexView-menuitem51',
                        }
                        ,
                        		        {
                        	id: 'B1FF29B0-BC1B-4559-9AB4-10DF97B706E0',
                        	name: 'menuitem52',
                        	text: '库位调整单',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '库位调整单',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: '',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto4',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'emitem-cstab-exp-view',
                        	authtag:'EAMWeb-EAMIndexView-menuitem52',
                        }
                        ,
                        		        {
                        	id: '40F08ECD-E058-4980-8E42-668B1BD9F5F6',
                        	name: 'menuitem53',
                        	text: '出库单',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '出库单',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: '',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto13',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'emitem-rout-tab-exp-view',
                        	authtag:'EAMWeb-EAMIndexView-menuitem53',
                        }
                        ,
                        		        {
                        	id: '020F73E4-ED57-4B5C-8028-7B39BE3AD9F9',
                        	name: 'menuitem54',
                        	text: '领料单',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '领料单',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: '',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto7',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'emitem-puse-tab-exp-view',
                        	authtag:'EAMWeb-EAMIndexView-menuitem54',
                        }
                        ,
                        		        {
                        	id: '322A6C86-D53E-47CF-A71F-7CB2F53843A5',
                        	name: 'menuitem55',
                        	text: '还料单',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '还料单',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: '',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto8',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'emitem-prtn-tab-exp-view',
                        	authtag:'EAMWeb-EAMIndexView-menuitem55',
                        }
                        ,
                	],
                }
                ,
                		        {
                	id: '8CEA9960-559D-4CE9-9879-FC6DDF1A4F60',
                	name: 'menuitem56',
                	text: '采购',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '采购',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: 'fa fa-leanpub',
                	icon: '',
                	textcls: '',
                	appfunctag: '',
                	authtag:'EAMWeb-EAMIndexView-menuitem56',
                	items: [
                        		        {
                        	id: '9D0FFBB2-2F9D-4AF2-B370-5BDDCC272BC0',
                        	name: 'menuitem57',
                        	text: '采购流程',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '采购流程',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: '',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto54',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'emwplist-wp-process-tree-exp-view',
                        	authtag:'EAMWeb-EAMIndexView-menuitem57',
                        }
                        ,
                        		        {
                        	id: 'FABF7F9D-5E0D-4970-9652-2D41C2531D7B',
                        	name: 'menuitem58',
                        	text: '服务商',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '服务商',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: '',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto36',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'emservice-grid-view',
                        	authtag:'EAMWeb-EAMIndexView-menuitem58',
                        }
                        ,
                        		        {
                        	id: 'D8002AB5-C8EE-4BD7-B5C4-50D7DA30B6A7',
                        	name: 'menuitem59',
                        	text: '服务商评估',
                        	type: 'MENUITEM',
                        	counterid: '',
                        	tooltip: '服务商评估',
                        	expanded: false,
                        	separator: false,
                        	hidden: false,
                        	hidesidebar: false,
                        	opendefault: false,
                        	iconcls: '',
                        	icon: '',
                        	textcls: '',
                        	appfunctag: 'Auto34',
                        	appfuncyype: 'APPVIEW',
                        	viewname: 'emservice-evl-grid-view',
                        	authtag:'EAMWeb-EAMIndexView-menuitem59',
                        }
                        ,
                	],
                }
                ,
        	],
        }
        ,
                {
        	id: 'd2a10eb6b20b989751e586b4262c8538',
        	name: 'bottom_exp',
        	text: '底部内容',
        	type: 'MENUITEM',
        	counterid: '',
        	tooltip: '底部内容',
        	expanded: false,
        	separator: false,
        	hidden: false,
        	hidesidebar: false,
        	opendefault: false,
        	iconcls: '',
        	icon: '',
        	textcls: '',
        	appfunctag: '',
        	authtag:'EAMWeb-EAMIndexView-bottom_exp',
        }
        ,
                {
        	id: '88e70d799122f7f6c4f05de58f59e941',
        	name: 'footer_left',
        	text: '底部左侧',
        	type: 'MENUITEM',
        	counterid: '',
        	tooltip: '底部左侧',
        	expanded: false,
        	separator: false,
        	hidden: false,
        	hidesidebar: false,
        	opendefault: false,
        	iconcls: '',
        	icon: '',
        	textcls: '',
        	appfunctag: '',
        	authtag:'EAMWeb-EAMIndexView-footer_left',
        }
        ,
                {
        	id: 'be0be825444f28db2e64d4820db9f314',
        	name: 'footer_center',
        	text: '底部中间',
        	type: 'MENUITEM',
        	counterid: '',
        	tooltip: '底部中间',
        	expanded: false,
        	separator: false,
        	hidden: false,
        	hidesidebar: false,
        	opendefault: false,
        	iconcls: '',
        	icon: '',
        	textcls: '',
        	appfunctag: '',
        	authtag:'EAMWeb-EAMIndexView-footer_center',
        }
        ,
                {
        	id: 'dab2912ee498ff28e9f5c7575aa21db0',
        	name: 'footer_right',
        	text: '底部右侧',
        	type: 'MENUITEM',
        	counterid: '',
        	tooltip: '底部右侧',
        	expanded: false,
        	separator: false,
        	hidden: false,
        	hidesidebar: false,
        	opendefault: false,
        	iconcls: '',
        	icon: '',
        	textcls: '',
        	appfunctag: '',
        	authtag:'EAMWeb-EAMIndexView-footer_right',
        }
        ,
    ];

	/**
	 * 应用功能集合
	 *
	 * @private
	 * @type {any[]}
	 * @memberof EAMIndexViewModel
	 */
	private funcs: any[] = [
        {
            appfunctag: 'Auto51',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'emassetclassgridview',
            deResParameters: [],
            routepath: '/eamindexview/:eamindexview?/emassetclasses/:emassetclass?/gridview/:gridview?',
            parameters: [
                { pathName: 'emassetclasses', parameterName: 'emassetclass' },
                { pathName: 'gridview', parameterName: 'gridview' },
            ],
        },
        {
            appfunctag: 'Auto4',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'emitemcstabexpview',
            deResParameters: [],
            routepath: '/eamindexview/:eamindexview?/emitemcs/:emitemcs?/tabexpview/:tabexpview?',
            parameters: [
                { pathName: 'emitemcs', parameterName: 'emitemcs' },
                { pathName: 'tabexpview', parameterName: 'tabexpview' },
            ],
        },
        {
            appfunctag: 'Auto7',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'emitempusetabexpview',
            deResParameters: [],
            routepath: '/eamindexview/:eamindexview?/emitempuses/:emitempuse?/tabexpview/:tabexpview?',
            parameters: [
                { pathName: 'emitempuses', parameterName: 'emitempuse' },
                { pathName: 'tabexpview', parameterName: 'tabexpview' },
            ],
        },
        {
            appfunctag: 'Auto9',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'emwo_innergridview',
            deResParameters: [],
            routepath: '/eamindexview/:eamindexview?/emwo_inners/:emwo_inner?/gridview/:gridview?',
            parameters: [
                { pathName: 'emwo_inners', parameterName: 'emwo_inner' },
                { pathName: 'gridview', parameterName: 'gridview' },
            ],
        },
        {
            appfunctag: 'Auto28',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'emeqkeepgridview',
            deResParameters: [],
            routepath: '/eamindexview/:eamindexview?/emeqkeeps/:emeqkeep?/gridview/:gridview?',
            parameters: [
                { pathName: 'emeqkeeps', parameterName: 'emeqkeep' },
                { pathName: 'gridview', parameterName: 'gridview' },
            ],
        },
        {
            appfunctag: 'Auto10',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'emeqsparegridexpview',
            deResParameters: [],
            routepath: '/eamindexview/:eamindexview?/emeqspares/:emeqspare?/gridexpview/:gridexpview?',
            parameters: [
                { pathName: 'emeqspares', parameterName: 'emeqspare' },
                { pathName: 'gridexpview', parameterName: 'gridexpview' },
            ],
        },
        {
            appfunctag: 'Auto20',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'emdrwgtreeexpview',
            deResParameters: [],
            routepath: '/eamindexview/:eamindexview?/emdrwgs/:emdrwg?/treeexpview/:treeexpview?',
            parameters: [
                { pathName: 'emdrwgs', parameterName: 'emdrwg' },
                { pathName: 'treeexpview', parameterName: 'treeexpview' },
            ],
        },
        {
            appfunctag: 'Auto14',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'emitemtypeitemtreeexpview',
            deResParameters: [],
            routepath: '/eamindexview/:eamindexview?/emitemtypes/:emitemtype?/itemtreeexpview/:itemtreeexpview?',
            parameters: [
                { pathName: 'emitemtypes', parameterName: 'emitemtype' },
                { pathName: 'itemtreeexpview', parameterName: 'itemtreeexpview' },
            ],
        },
        {
            appfunctag: 'Auto12',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'emeqlocationtreeexpview',
            deResParameters: [],
            routepath: '/eamindexview/:eamindexview?/emeqlocations/:emeqlocation?/treeexpview/:treeexpview?',
            parameters: [
                { pathName: 'emeqlocations', parameterName: 'emeqlocation' },
                { pathName: 'treeexpview', parameterName: 'treeexpview' },
            ],
        },
        {
            appfunctag: 'Auto3',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'emwo_dpgridview',
            deResParameters: [],
            routepath: '/eamindexview/:eamindexview?/emwo_dps/:emwo_dp?/gridview/:gridview?',
            parameters: [
                { pathName: 'emwo_dps', parameterName: 'emwo_dp' },
                { pathName: 'gridview', parameterName: 'gridview' },
            ],
        },
        {
            appfunctag: 'Auto34',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'emserviceevlgridview',
            deResParameters: [],
            routepath: '/eamindexview/:eamindexview?/emserviceevls/:emserviceevl?/gridview/:gridview?',
            parameters: [
                { pathName: 'emserviceevls', parameterName: 'emserviceevl' },
                { pathName: 'gridview', parameterName: 'gridview' },
            ],
        },
        {
            appfunctag: 'AppFunc',
            appfuncyype: 'OPENHTMLPAGE',
        },
        {
            appfunctag: 'Auto19',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'emstockgridview',
            deResParameters: [],
            routepath: '/eamindexview/:eamindexview?/emstocks/:emstock?/gridview/:gridview?',
            parameters: [
                { pathName: 'emstocks', parameterName: 'emstock' },
                { pathName: 'gridview', parameterName: 'gridview' },
            ],
        },
        {
            appfunctag: 'Auto15',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'emplangridview',
            deResParameters: [],
            routepath: '/eamindexview/:eamindexview?/emplans/:emplan?/gridview/:gridview?',
            parameters: [
                { pathName: 'emplans', parameterName: 'emplan' },
                { pathName: 'gridview', parameterName: 'gridview' },
            ],
        },
        {
            appfunctag: 'Auto63',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'emeqkpgridview',
            deResParameters: [],
            routepath: '/eamindexview/:eamindexview?/emeqkps/:emeqkp?/gridview/:gridview?',
            parameters: [
                { pathName: 'emeqkps', parameterName: 'emeqkp' },
                { pathName: 'gridview', parameterName: 'gridview' },
            ],
        },
        {
            appfunctag: 'Auto31',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'emeqmaintancegridview',
            deResParameters: [],
            routepath: '/eamindexview/:eamindexview?/emeqmaintances/:emeqmaintance?/gridview/:gridview?',
            parameters: [
                { pathName: 'emeqmaintances', parameterName: 'emeqmaintance' },
                { pathName: 'gridview', parameterName: 'gridview' },
            ],
        },
        {
            appfunctag: 'Auto54',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'emwplistwpprocesstreeexpview',
            deResParameters: [],
            routepath: '/eamindexview/:eamindexview?/emwplists/:emwplist?/wpprocesstreeexpview/:wpprocesstreeexpview?',
            parameters: [
                { pathName: 'emwplists', parameterName: 'emwplist' },
                { pathName: 'wpprocesstreeexpview', parameterName: 'wpprocesstreeexpview' },
            ],
        },
        {
            appfunctag: 'Auto59',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'emeqmpmtrgridview',
            deResParameters: [],
            routepath: '/eamindexview/:eamindexview?/emeqmpmtrs/:emeqmpmtr?/gridview/:gridview?',
            parameters: [
                { pathName: 'emeqmpmtrs', parameterName: 'emeqmpmtr' },
                { pathName: 'gridview', parameterName: 'gridview' },
            ],
        },
        {
            appfunctag: 'Auto60',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'emeqmonitorgridview',
            deResParameters: [],
            routepath: '/eamindexview/:eamindexview?/emeqmonitors/:emeqmonitor?/gridview/:gridview?',
            parameters: [
                { pathName: 'emeqmonitors', parameterName: 'emeqmonitor' },
                { pathName: 'gridview', parameterName: 'gridview' },
            ],
        },
        {
            appfunctag: 'Auto46',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'emassetgridview_bf',
            deResParameters: [],
            routepath: '/eamindexview/:eamindexview?/emassets/:emasset?/gridview_bf/:gridview_bf?',
            parameters: [
                { pathName: 'emassets', parameterName: 'emasset' },
                { pathName: 'gridview_bf', parameterName: 'gridview_bf' },
            ],
        },
        {
            appfunctag: 'Auto39',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'emassetcleargridview_5564',
            deResParameters: [],
            routepath: '/eamindexview/:eamindexview?/emassetclears/:emassetclear?/gridview_5564/:gridview_5564?',
            parameters: [
                { pathName: 'emassetclears', parameterName: 'emassetclear' },
                { pathName: 'gridview_5564', parameterName: 'gridview_5564' },
            ],
        },
        {
            appfunctag: 'Auto1',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'emeqtypetreeexpview',
            deResParameters: [],
            routepath: '/eamindexview/:eamindexview?/emeqtypes/:emeqtype?/treeexpview/:treeexpview?',
            parameters: [
                { pathName: 'emeqtypes', parameterName: 'emeqtype' },
                { pathName: 'treeexpview', parameterName: 'treeexpview' },
            ],
        },
        {
            appfunctag: 'Auto13',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'emitemrouttabexpview',
            deResParameters: [],
            routepath: '/eamindexview/:eamindexview?/emitemrouts/:emitemrout?/tabexpview/:tabexpview?',
            parameters: [
                { pathName: 'emitemrouts', parameterName: 'emitemrout' },
                { pathName: 'tabexpview', parameterName: 'tabexpview' },
            ],
        },
        {
            appfunctag: 'Auto26',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'emrfodetypegridview',
            deResParameters: [],
            routepath: '/eamindexview/:eamindexview?/emrfodetypes/:emrfodetype?/gridview/:gridview?',
            parameters: [
                { pathName: 'emrfodetypes', parameterName: 'emrfodetype' },
                { pathName: 'gridview', parameterName: 'gridview' },
            ],
        },
        {
            appfunctag: 'Auto37',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'appportalview',
            deResParameters: [],
            routepath: '/eamindexview/:eamindexview?/appportalview/:appportalview?',
            parameters: [
                { pathName: 'appportalview', parameterName: 'appportalview' },
            ],
        },
        {
            appfunctag: 'Auto62',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'emeqmpgridview',
            deResParameters: [],
            routepath: '/eamindexview/:eamindexview?/emeqmps/:emeqmp?/gridview/:gridview?',
            parameters: [
                { pathName: 'emeqmps', parameterName: 'emeqmp' },
                { pathName: 'gridview', parameterName: 'gridview' },
            ],
        },
        {
            appfunctag: 'Auto17',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'emwo_oscgridview',
            deResParameters: [],
            routepath: '/eamindexview/:eamindexview?/emwo_oscs/:emwo_osc?/gridview/:gridview?',
            parameters: [
                { pathName: 'emwo_oscs', parameterName: 'emwo_osc' },
                { pathName: 'gridview', parameterName: 'gridview' },
            ],
        },
        {
            appfunctag: 'AppFunc3',
            appfuncyype: 'OPENHTMLPAGE',
        },
        {
            appfunctag: 'AppFunc2',
            appfuncyype: 'OPENHTMLPAGE',
        },
        {
            appfunctag: 'Auto27',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'emeqsetupgridview',
            deResParameters: [],
            routepath: '/eamindexview/:eamindexview?/emeqsetups/:emeqsetup?/gridview/:gridview?',
            parameters: [
                { pathName: 'emeqsetups', parameterName: 'emeqsetup' },
                { pathName: 'gridview', parameterName: 'gridview' },
            ],
        },
        {
            appfunctag: 'Auto50',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'emrfodegridview',
            deResParameters: [],
            routepath: '/eamindexview/:eamindexview?/emrfodes/:emrfode?/gridview/:gridview?',
            parameters: [
                { pathName: 'emrfodes', parameterName: 'emrfode' },
                { pathName: 'gridview', parameterName: 'gridview' },
            ],
        },
        {
            appfunctag: 'Auto65',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'emeqwlgridview',
            deResParameters: [],
            routepath: '/eamindexview/:eamindexview?/emeqwls/:emeqwl?/gridview/:gridview?',
            parameters: [
                { pathName: 'emeqwls', parameterName: 'emeqwl' },
                { pathName: 'gridview', parameterName: 'gridview' },
            ],
        },
        {
            appfunctag: 'Auto66',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'emrfodegridexpview',
            deResParameters: [],
            routepath: '/eamindexview/:eamindexview?/emrfodes/:emrfode?/gridexpview/:gridexpview?',
            parameters: [
                { pathName: 'emrfodes', parameterName: 'emrfode' },
                { pathName: 'gridexpview', parameterName: 'gridexpview' },
            ],
        },
        {
            appfunctag: 'Auto36',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'emservicegridview',
            deResParameters: [],
            routepath: '/eamindexview/:eamindexview?/emservices/:emservice?/gridview/:gridview?',
            parameters: [
                { pathName: 'emservices', parameterName: 'emservice' },
                { pathName: 'gridview', parameterName: 'gridview' },
            ],
        },
        {
            appfunctag: 'Auto16',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'emapplygridview',
            deResParameters: [],
            routepath: '/eamindexview/:eamindexview?/emapplies/:emapply?/gridview/:gridview?',
            parameters: [
                { pathName: 'emapplies', parameterName: 'emapply' },
                { pathName: 'gridview', parameterName: 'gridview' },
            ],
        },
        {
            appfunctag: 'Auto6',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'emplantemplgridview',
            deResParameters: [],
            routepath: '/eamindexview/:eamindexview?/emplantempls/:emplantempl?/gridview/:gridview?',
            parameters: [
                { pathName: 'emplantempls', parameterName: 'emplantempl' },
                { pathName: 'gridview', parameterName: 'gridview' },
            ],
        },
        {
            appfunctag: 'Auto41',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'emrfomogridview',
            deResParameters: [],
            routepath: '/eamindexview/:eamindexview?/emrfomos/:emrfomo?/gridview/:gridview?',
            parameters: [
                { pathName: 'emrfomos', parameterName: 'emrfomo' },
                { pathName: 'gridview', parameterName: 'gridview' },
            ],
        },
        {
            appfunctag: 'Auto18',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'emitempltabexpview',
            deResParameters: [],
            routepath: '/eamindexview/:eamindexview?/emitempls/:emitempl?/tabexpview/:tabexpview?',
            parameters: [
                { pathName: 'emitempls', parameterName: 'emitempl' },
                { pathName: 'tabexpview', parameterName: 'tabexpview' },
            ],
        },
        {
            appfunctag: 'Auto35',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'emengridview',
            deResParameters: [],
            routepath: '/eamindexview/:eamindexview?/emen/:emen?/gridview/:gridview?',
            parameters: [
                { pathName: 'emen', parameterName: 'emen' },
                { pathName: 'gridview', parameterName: 'gridview' },
            ],
        },
        {
            appfunctag: 'Auto38',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'emeqcheckgridview',
            deResParameters: [],
            routepath: '/eamindexview/:eamindexview?/emeqchecks/:emeqcheck?/gridview/:gridview?',
            parameters: [
                { pathName: 'emeqchecks', parameterName: 'emeqcheck' },
                { pathName: 'gridview', parameterName: 'gridview' },
            ],
        },
        {
            appfunctag: 'Auto22',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'emitemtypeinfotreeexpview',
            deResParameters: [],
            routepath: '/eamindexview/:eamindexview?/emitemtypes/:emitemtype?/infotreeexpview/:infotreeexpview?',
            parameters: [
                { pathName: 'emitemtypes', parameterName: 'emitemtype' },
                { pathName: 'infotreeexpview', parameterName: 'infotreeexpview' },
            ],
        },
        {
            appfunctag: 'Auto8',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'emitemprtntabexpview',
            deResParameters: [],
            routepath: '/eamindexview/:eamindexview?/emitemprtns/:emitemprtn?/tabexpview/:tabexpview?',
            parameters: [
                { pathName: 'emitemprtns', parameterName: 'emitemprtn' },
                { pathName: 'tabexpview', parameterName: 'tabexpview' },
            ],
        },
        {
            appfunctag: 'Auto29',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'emassetgridview',
            deResParameters: [],
            routepath: '/eamindexview/:eamindexview?/emassets/:emasset?/gridview/:gridview?',
            parameters: [
                { pathName: 'emassets', parameterName: 'emasset' },
                { pathName: 'gridview', parameterName: 'gridview' },
            ],
        },
        {
            appfunctag: 'Auto67',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'emeqkprcdgridview',
            deResParameters: [],
            routepath: '/eamindexview/:eamindexview?/emeqkprcds/:emeqkprcd?/gridview/:gridview?',
            parameters: [
                { pathName: 'emeqkprcds', parameterName: 'emeqkprcd' },
                { pathName: 'gridview', parameterName: 'gridview' },
            ],
        },
        {
            appfunctag: 'Auto30',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'emrfoacgridview',
            deResParameters: [],
            routepath: '/eamindexview/:eamindexview?/emrfoacs/:emrfoac?/gridview/:gridview?',
            parameters: [
                { pathName: 'emrfoacs', parameterName: 'emrfoac' },
                { pathName: 'gridview', parameterName: 'gridview' },
            ],
        },
        {
            appfunctag: 'Auto32',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'emenconsumgridview',
            deResParameters: [],
            routepath: '/eamindexview/:eamindexview?/emenconsums/:emenconsum?/gridview/:gridview?',
            parameters: [
                { pathName: 'emenconsums', parameterName: 'emenconsum' },
                { pathName: 'gridview', parameterName: 'gridview' },
            ],
        },
        {
            appfunctag: 'Auto21',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'emeqtypetreeexpview2',
            deResParameters: [],
            routepath: '/eamindexview/:eamindexview?/emeqtypes/:emeqtype?/treeexpview2/:treeexpview2?',
            parameters: [
                { pathName: 'emeqtypes', parameterName: 'emeqtype' },
                { pathName: 'treeexpview2', parameterName: 'treeexpview2' },
            ],
        },
        {
            appfunctag: 'Auto33',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'emeqdebuggridview',
            deResParameters: [],
            routepath: '/eamindexview/:eamindexview?/emeqdebugs/:emeqdebug?/gridview/:gridview?',
            parameters: [
                { pathName: 'emeqdebugs', parameterName: 'emeqdebug' },
                { pathName: 'gridview', parameterName: 'gridview' },
            ],
        },
        {
            appfunctag: 'Auto48',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'emrfocagridview',
            deResParameters: [],
            routepath: '/eamindexview/:eamindexview?/emrfocas/:emrfoca?/gridview/:gridview?',
            parameters: [
                { pathName: 'emrfocas', parameterName: 'emrfoca' },
                { pathName: 'gridview', parameterName: 'gridview' },
            ],
        },
        {
            appfunctag: 'Auto5',
            appfuncyype: 'APPVIEW',
            openmode: '',
            codename: 'emwo_engridview',
            deResParameters: [],
            routepath: '/eamindexview/:eamindexview?/emwo_ens/:emwo_en?/gridview/:gridview?',
            parameters: [
                { pathName: 'emwo_ens', parameterName: 'emwo_en' },
                { pathName: 'gridview', parameterName: 'gridview' },
            ],
        },
        {
            appfunctag: 'AppFunc4',
            appfuncyype: 'OPENHTMLPAGE',
        },
	];

	/**
	 * 根据当前路由查找激活菜单
	 *
	 * @param {*} route
	 * @returns {*}
	 * @memberof EAMIndexViewModel
	 */
	public findActiveMenuByRoute(route: any): any {
		if (route) {
			const func = this.funcs.find((item: any) => {
				if (item.openmode === '') {
					const url: string = ViewTool.buildUpRoutePath(route, route.params, [], item.parameters, [], {});
					return url === route.fullPath;
				}
			});
            if (func) {
			    return this.findMenuByFuncTag(func.appfunctag);
            }
		}
	}

	/**
	 * 根据应用功能id查找菜单项
	 *
	 * @param {string} tag
	 * @param {any[]} [menus=this.items]
	 * @returns {*}
	 * @memberof EAMIndexViewModel
	 */
	public findMenuByFuncTag(tag: string, menus: any[] = this.items): any {
		let menu: any;
		menus.every((item: any) => {
			if (item.appfunctag === tag) {
				menu = item;
				return false;
			}
			if (item.items) {
				menu = this.findMenuByFuncTag(tag, item.items);
				if (menu) {
					return false;
				}
			}
			return true;
		});
		return menu;
	}

	/**
	 * 查找默认打开菜单
	 *
	 * @param {any[]} [menus=this.items]
	 * @returns {*}
	 * @memberof EAMIndexViewModel
	 */
	public findDefaultOpenMenu(menus: any[] = this.items): any {
		let menu: any;
		menus.every((item: any) => {
			if (item.opendefault === true) {
				menu = item;
				return false;
			}
			if (item.items) {
				menu = this.findMenuByFuncTag(item.items);
				if (menu) {
					return false;
				}
			}
			return true;
		});
		return menu;
	}

    /**
     * 获取所有菜单项集合
     *
     * @returns {any[]}
     * @memberof EAMIndexViewModel
     */
    public getAppMenuItems(): any[] {
        return this.items;
    }

	/**
	 * 根据名称获取菜单组
	 *
	 * @param {string} name
	 * @returns {*}
	 * @memberof EAMIndexViewModel
	 */
	public getMenuGroup(name: string): any {
		return this.items.find((item: any) => Object.is(item.name, name));
	}

    /**
     * 获取所有应用功能集合
     *
     * @returns {any[]}
     * @memberof EAMIndexViewModel
     */
    public getAppFuncs(): any[] {
        return this.funcs;
    }
}